package Demo5;

public class Rabbit extends Animal{
    public Rabbit(String name,int age){
        super(name,age);
    }
    public void jump(){
        System.out.println(this.name+"正在跳跃...");
    }
    @Override
    public void eat(){
        System.out.println(this.name+"正在吃胡萝卜...");
    }
}
